<?php

namespace App\Admin;

use Encore\Admin\Actions\RowAction;
use Illuminate\Database\Eloquent\Model;

class GoodsManage extends RowAction
{
    public $name = '商品管理';

//    public function handle(Model $model)
//    {
//       return view('welcome');
//
//        //return $this->response()->success('Success message.')->refresh();
//    }

    public function href()
    {
        $id = $this->getKey();
        return "/admin/machine_good/$id";
    }

}